package com.wzw.expression.expression.source;

import com.wzw.expression.expression.operation.Operation;
import org.springframework.lang.Nullable;

import java.lang.reflect.Method;
import java.util.Collection;

/**
 * @author Wangzhiwen
 */
public interface OperationSource {

    default boolean isCandidateClass(Class<?> targetClass) {
        return true;
    }

    @Nullable
    Collection<Operation> getOperations(Method method, @Nullable Class<?> targetClass);

}
